<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="registrationForm" enctype="multipart/form-data">
                <br/>
                <h2 class="title">Averbações</h2>
                <p:growl id="messages" showDetail="true" autoUpdate="true"  /> 
                <br/>

                <p:panel id="resultPanel" style="background: none; border: none;" 
                         styleClass="container_24 clearfix ">

                    <p:dataTable id="tableImovel" var="item" value="#{managerIndexRegistration.averbacoes()}" 
                                 styleClass="grid_24" rowIndexVar="rowid"
                                 rowKey="#{item.id}" rows="5" paginator="true"  
                                 paginatorPosition="bottom" emptyMessage="Nenhum registro">  
                        <f:facet name="header">
                            Averbações
                        </f:facet>
                        <p:column headerText="Ação">
<!--                            <p:button  style="width: 20px; height: 20px;" 
                                       title="Editar"
                                       href="editarimovel.xhtml?eImovel=#{item.id}"
                                       icon="ui-icon-pencil"/>
                            <p:button  style="width: 20px; height: 20px;" 
                                       title="Visualizar"
                                       href="visualizarimovel.xhtml?vImovel=#{item.id}"
                                       icon="ui-icon-zoomin"/>-->

                        </p:column>
                        <p:column headerText="Tipo">  
                            <p:outputLabel value="#{item.tipoAverbacao.nome}" />
                        </p:column> 
                        <p:column headerText="Data">  
                            <h:outputText value="#{item.dataAverbacao}">
                                <f:convertDateTime  pattern="dd/MM/YYYY HH:mm:ss"/>
                            </h:outputText>
                        </p:column> 
                    </p:dataTable> 

                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
